// 外部模块
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import router from '@/router'

// 内部模块
import App from '@/App.vue'
// 导入全局样式文件
import '@/assets/styles'
// el-icon 组件
import { useIcons } from '@/utils'
import { install } from '@/components/install'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus, { locale: zhCn })
app.use(useIcons)
app.use(install)
app.mount('#app')

// 如果启动参数带了 mock 参数，则开启 mock 模式
// if (process.env.MOCK) {
//   import('@/utils/mock.util')
// }
